import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-05-25
 * Time: 14:38
 */
public class Test {
    public static void main(String[] args) {
        int[] arr=new int[10];
        for (int i = 0; i < arr.length; i++) {
            arr[i]=i;
        }
        for (int i = 0; i < arr.length / 2; i++) {
            int n=arr[i];
            arr[i]=arr[arr.length-i-1];
            arr[arr.length-i-1]=n;
        }
       String str= Arrays.toString(arr);
        System.out.println(str);
    }
}
